a=input()
A=["q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","n","m",]
d=0
s=0
n=0
uu=0
sih=0
mind=0
may=0
print("всего слов: ",len(a.split()))
for i in a.split():
    for m in i:
        if m.isupper():
            for sd in A:
                if m.lower()==sd:
                    n=3
            if n!=3:
                d+=1
print("Заглавных Кириллиц: ",d)
a=a.lower()
for i in range(len(a)):
    for isd in range(26):
        if a[i]==A[isd]:
            s+=1
print("English: ",s)
for num in a.split():
    if len(num)<=3:
        uu+=1
print("кол-во слов не превышающих 3х символов",uu)
for stu in range(len(a)):
    if a[stu]=="-":
        sih+=1
print("слов с дефизом",sih)
for tekst in a.split():
    if len(tekst)>mind:
        mind=len(tekst)
        may=tekst
print("самое длинное слово: ",may)
print("кол-во символов в нём: ",mind)
